import Layout from "@/layout/index.vue";

export default [
  {
    path: "/",
    component: Layout,
    redirect: "enrollment",
    name: "Admin",
    meta: {
      title: "管理员",
    },
    children: [
      // 招生报名
      {
        path: "/enrollment",
        name: "Enrollment",
        meta: { title: "招生报名", icon: "enrollment" },
        children: [
          {
            path: "/manage",
            component: () => import("@/views/admin/enrollment/manage.vue"),
            name: "EnrollmentManage",
            meta: { title: "报名管理" },
          },
          {
            path: "/statistics",
            component: () => import("@/views/admin/enrollment/statistics.vue"),
            name: "EnrollmentStatistics",
            meta: { title: "报名统计" },
          },
          {
            path: "/materials",
            component: () => import("@/views/admin/enrollment/materials.vue"),
            name: "EnrollmentMaterials",
            meta: { title: "宣传资料" },
          },
        ],
      },
      // 教务管理
      {
        path: "teaching",
        name: "Teaching",
        redirect: "courses",
        meta: { title: "教务管理", icon: "teaching" },
        children: [
          {
            path: "/courses",
            component: () => import("@/views/admin/teaching/courses.vue"),
            name: "CoursesManage",
            meta: { title: "课程管理" },
          },
          {
            path: "/teachers",
            component: () => import("@/views/admin/teaching/teachers.vue"),
            name: "TeachersManage",
            meta: { title: "教师管理" },
          },
          {
            path: "/classes",
            component: () => import("@/views/admin/teaching/classes.vue"),
            name: "ClassesManage",
            meta: { title: "班级管理" },
          },
          {
            path: "/students",
            component: () => import("@/views/admin/teaching/students.vue"),
            name: "StudentsManage",
            meta: { title: "学生管理" },
          },
        ],
      },
      // 财务管理
      {
        path: "finance",
        name: "Finance",
        redirect: "charges",
        meta: { title: "财务管理", icon: "finance" },
        children: [
          {
            path: "/charges",
            component: () => import("@/views/admin/finance/charges.vue"),
            name: "ChargesManage",
            meta: { title: "收费管理" },
          },
          {
            path: "/report",
            component: () => import("@/views/admin/finance/report.vue"),
            name: "FinanceReport",
            meta: { title: "财务报表" },
          },
          {
            path: "/invoices",
            component: () => import("@/views/admin/finance/invoices.vue"),
            name: "InvoicesManage",
            meta: { title: "发票管理" },
          },
        ],
      },
      // 数据统计
      {
        path: "/numbers-statistics",
        name: "Statistics",
        redirect: "enrollment",
        meta: { title: "数据统计", icon: "statistics" },
        children: [
          {
            path: "/Enrollment-statics",
            component: () => import("@/views/admin/statistics/enrollment.vue"),
            name: "EnrollmentStatistics",
            meta: { title: "招生统计" },
          },
          {
            path: "/teaching",
            component: () => import("@/views/admin/statistics/teaching.vue"),
            name: "TeachingStatistics",
            meta: { title: "教学统计" },
          },
          {
            path: "/finance",
            component: () => import("@/views/admin/statistics/finance.vue"),
            name: "FinanceStatistics",
            meta: { title: "财务统计" },
          },
        ],
      },
      // 机构管理
      {
        path: "organization",
        name: "Organization",
        redirect: "employees",
        meta: { title: "机构管理", icon: "organization" },
        children: [
          {
            path: "/employees",
            component: () => import("@/views/admin/organization/employees.vue"),
            name: "EmployeesManage",
            meta: { title: "员工管理" },
          },
          {
            path: "/add-account",
            component: () =>
              import("@/views/admin/organization/addAccount.vue"),
            name: "AddAccount",
            meta: { title: "添加账号" },
          },
        ],
      },
    ],
  },
];
